package com.qf.controller;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.qf.pojo.resp.BaseResp;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA. User: Administrator Date: 2021/11/10 0010 Time: 17:30 Description: No
 * Description
 */
@RestController
@RequestMapping("/user")
@RefreshScope
public class UserController {

  @Autowired UserService userService;

  @RequestMapping("getCode")
  public BaseResp getCode(@RequestParam("email")String email){
    return userService.getCode(email);
  }


}
